package com.example.demo22_csrf1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TransferController {

    @PostMapping("/transfer")
    @ResponseBody
    public String transfer(String name, Integer money) {
        return name + " 扣减余额 " + money;
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }


}
